package com.caopeng.javaee.service.ServiceImpl;

import com.caopeng.javaee.dao.TeacherJpa;
import com.caopeng.javaee.entity.teacher;
import com.caopeng.javaee.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: javaee
 * @description: 教师逻辑实现类
 * @author: caopeng
 * @create: 2018-12-08 10:50
 **/
@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    TeacherJpa teacherjpa;
    @Override
    public teacher TfindById(int id) {
        return teacherjpa.findById(id);
    }

    @Override
    public teacher findByName(String name) {
        return teacherjpa.findByName(name);
    }
}

